Optimal. Leaf size=99 \[ -\frac{a^3 (-7 B+i A) (1+i \tan (e+f x))^3}{48 c^4 f (1-i \tan (e+f x))^3}-\frac{a^3 (B+i A) (1+i \tan (e+f x))^3}{8 c^4 f (1-i \tan (e+f x))^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.138471, antiderivative size = 99, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 41, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.073, Rules used = {3588, 78, 37} \[ -\frac{a^3 (-7 B+i A) (1+i \tan (e+f x))^3}{48 c^4 f (1-i \tan (e+f x))^3}-\frac{a^3 (B+i A) (1+i \tan (e+f x))^3}{8 c^4 f (1-i \tan (e+f x))^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3588
Rule 78
Rule 37
Rubi steps
\begin{align*} \int \frac{(a+i a \tan (e+f x))^3 (A+B \tan (e+f x))}{(c-i c \tan (e+f x))^4} \, dx &=\frac{(a c) \operatorname{Subst}\left (\int \frac{(a+i a x)^2 (A+B x)}{(c-i c x)^5} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac{a^3 (i A+B) (1+i \tan (e+f x))^3}{8 c^4 f (1-i \tan (e+f x))^4}+\frac{(a (A+7 i B)) \operatorname{Subst}\left (\int \frac{(a+i a x)^2}{(c-i c x)^4} \, dx,x,\tan (e+f x)\right )}{8 f}\\ &=-\frac{a^3 (i A+B) (1+i \tan (e+f x))^3}{8 c^4 f (1-i \tan (e+f x))^4}-\frac{a^3 (i A-7 B) (1+i \tan (e+f x))^3}{48 c^4 f (1-i \tan (e+f x))^3}\\ \end{align*}
Mathematica [A] time = 3.24733, size = 81, normalized size = 0.82 \[ \frac{a^3 (\cos (7 e+10 f x)+i \sin (7 e+10 f x)) ((B-7 i A) \cos (e+f x)-(A+7 i B) \sin (e+f x))}{48 c^4 f (\cos (f x)+i \sin (f x))^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.056, size = 90, normalized size = 0.9 \begin{align*}{\frac{{a}^{3}}{f{c}^{4}} \left ( -{\frac{8\,iB-4\,A}{3\, \left ( \tan \left ( fx+e \right ) +i \right ) ^{3}}}-{\frac{4\,iA+4\,B}{4\, \left ( \tan \left ( fx+e \right ) +i \right ) ^{4}}}+{\frac{iB}{\tan \left ( fx+e \right ) +i}}-{\frac{-5\,B-iA}{2\, \left ( \tan \left ( fx+e \right ) +i \right ) ^{2}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.32667, size = 130, normalized size = 1.31 \begin{align*} \frac{{\left (-3 i \, A - 3 \, B\right )} a^{3} e^{\left (8 i \, f x + 8 i \, e\right )} +{\left (-4 i \, A + 4 \, B\right )} a^{3} e^{\left (6 i \, f x + 6 i \, e\right )}}{48 \, c^{4} f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.02219, size = 168, normalized size = 1.7 \begin{align*} \begin{cases} \frac{\left (- 16 i A a^{3} c^{4} f e^{6 i e} + 16 B a^{3} c^{4} f e^{6 i e}\right ) e^{6 i f x} + \left (- 12 i A a^{3} c^{4} f e^{8 i e} - 12 B a^{3} c^{4} f e^{8 i e}\right ) e^{8 i f x}}{192 c^{8} f^{2}} & \text{for}\: 192 c^{8} f^{2} \neq 0 \\\frac{x \left (A a^{3} e^{8 i e} + A a^{3} e^{6 i e} - i B a^{3} e^{8 i e} + i B a^{3} e^{6 i e}\right )}{2 c^{4}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.6331, size = 320, normalized size = 3.23 \begin{align*} -\frac{2 \,{\left (3 \, A a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{7} + 3 i \, A a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{6} - 3 \, B a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{6} - 17 \, A a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} + 4 i \, B a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} - 10 i \, A a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} + 10 \, B a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} + 17 \, A a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} - 4 i \, B a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 3 i \, A a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 3 \, B a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 3 \, A a^{3} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )}}{3 \, c^{4} f{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + i\right )}^{8}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]